package lab02.test30;

import java.util.Scanner;

/**
 * 如何用list解决本题，如果不指定个数，该如何解决。
 *
 *
 * Created by ASUS on 2017/11/9.
 */
public class Test {
    public static void main(String[] args) {

        double[] scores = new double[5];
        Scanner scanner=new Scanner(System.in);
        for(int i=0;i<5;i++){
            scores[i]=scanner.nextDouble();
        }
        double sum = 0;
        for (int i = 0; i < 5;i++){
            sum = sum + scores[i];

        }
        System.out.println("平均分是;"+sum/5);
    }

}
